<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>去重测试</title>
    <script src="../../src/array/unique.js"></script>
</head>
<body>
    <script>
        //声明一个数组
        const arr = [1,2,3,2,1,4,5,6];

        //去重
        console.log(unique3(arr));
    </script>
</body>
</html>